import request from '@/utils/request'

// 创建会话历史
export function createSeekChatHistory(data) {
  return request({
    url: '/car/seek-chat-history/create',
    method: 'post',
    data: data
  })
}

// 更新会话历史
export function updateSeekChatHistory(data) {
  return request({
    url: '/car/seek-chat-history/update',
    method: 'put',
    data: data
  })
}

// 删除会话历史
export function deleteSeekChatHistory(id) {
  return request({
    url: '/car/seek-chat-history/delete?id=' + id,
    method: 'delete'
  })
}

// 获得会话历史
export function getSeekChatHistory(id) {
  return request({
    url: '/car/seek-chat-history/get?id=' + id,
    method: 'get'
  })
}

// 获得会话历史分页
export function getSeekChatHistoryPage(query) {
  return request({
    url: '/car/seek-chat-history/page',
    method: 'get',
    params: query
  })
}

// 导出会话历史 Excel
export function exportSeekChatHistoryExcel(query) {
  return request({
    url: '/car/seek-chat-history/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
